//
//  ECGChartView.h
//  Ikinloop-demo
//
//  Created by Li Shen on 2021/4/22.
//  Copyright © 2021 lyh. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface ECGChartView : UIView
//采样率
@property (nonatomic, assign) CGFloat sampleRate;
//走纸速度
@property (nonatomic, assign) CGFloat ecgSpeed;
//增益
@property (nonatomic, assign) CGFloat ecgGain;
//背景颜色
@property (nonatomic, assign) UIColor *bgColor;
//背景大格子颜色
@property (nonatomic, strong) UIColor *gridColor;
//背景小格子颜色
@property (nonatomic, strong) UIColor *smallgridColor;
//心电图波形颜色
@property (nonatomic, strong) UIColor *ecgColor;
//心电图波形宽度
@property (nonatomic, assign) CGFloat ecgLineWidth;
//大格子宽度
@property (nonatomic, assign) CGFloat gridLineWidth;
//小格子宽度
@property (nonatomic, assign) CGFloat smallGridLineWidth;

@property (nonatomic, assign) BOOL enableScroll;
/**
 心电绘图

 */
-(void)IKEcgDrawinit;

-(void)IKECGDrawData:(int)data;

-(void)IKECGDrawDatas:(NSArray <NSNumber *> *)datas;

- (void)IKECGDrawWithEcgData:(NSArray*)ecgDatas ecgStatas:(NSArray*)ecgStates;
/**
 释放心电绘图
 */
-(void)IKECGDrawUninit;

- (void)reload;
@end

NS_ASSUME_NONNULL_END
